var XHR = ("onload" in new XMLHttpRequest()) ? XMLHttpRequest : XDomainRequest;
var xhr = new XHR();
var url2 = 'https://weather-forecast.nz/informer1.js?code=karori&s=nzl&r=142&bgcolor=EE5E00&tcolor=FFFFFF&scolor=FF9881&font=Arial&width=100%&radius=10px&border=0px&shadow=2&graph=1&gradient=0&icons=0';
xhr.open('GET', url2 , true);
xhr.onload = function() {
document.getElementById("pp_informer1").innerHTML = this.responseText;
}
xhr.onerror = function() {
document.getElementById("pp_informer1").innerHTML ='Ups.. something is wrong!
Please, contact weather-forecast.nz to fix it!';
}
xhr.send();